<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>
<%@ include file="../inc/topo.jsp" %>
	<div id="breadcrumb">
		<s:text name="label.breadcrumb" />
		<a href="listarSetor.action">Setor</a>
	</div><br />
	<h1>Lista de Setores</h1><br />
	<s:url id="formSetor" action="preAdicionarSetor" />
	<s:a href="%{formSetor}"><b>Adicionar</b></s:a>
	<%@ include file="../inc/mensagens.jsp" %>
	<div class="TbLEdit_Form"><br />
		<c:set var="descricao"><s:text name="label.descricao" /></c:set>
		<s:set name="list" value="listSetor" scope="request" />
		<display:table name="list" id="row" requestURI="listarSetores.action">
			<display:column title="#">
				<s:url id="editUrl" action="editarSetor">
					<s:param name="setor.nuSetor">${row.nuSetor}</s:param>
				</s:url>
				<s:url id="escolheConteudos" action="setorConteudoList.action">
					<s:param name="setor.nuSetor">${row.nuSetor}</s:param>
				</s:url>
				<s:a href="%{editUrl}"><img src="images/b_edit.png" alt="Editar ${row.noSetor}" /></s:a>
				|
				<s:a href="%{escolheConteudos}">Conte&uacute;dos</s:a>
			</display:column>
			<display:column property="noSetor" title="Nome" />
			<display:column property="deSetor" title="${descricao}" />
			<display:column title="Apagar" class="del">
				<s:url id="apagar" action="confirmarApagarSetor">
					<s:param name="setor.nuSetor">${row.nuSetor}</s:param>
				</s:url>
				<s:a href="%{apagar}"><img src="images/delete.gif" alt="Apagar ${row.noSetor}" /></s:a>				
			</display:column>
		</display:table> 
	</div>
	<jsp:include page="../inc/final.jsp" />
